<?php

declare(strict_types=1);

namespace Api\Service\v1\Work;

use App\CustHub\Service\OpenWorkService;

class IdConvertApiService
{
    public function  unionidToExternalUserid(array $params)
    {
        $service = make(OpenWorkService::class,[$params['corp_id']]);
        return $service->unionidToExternalUserid($params['unionid'],$params['openid'],0);
    }

    public function  externalUseridToPendingId(array $params)
    {
        $service = make(OpenWorkService::class,[$params['corp_id']]);
        return $service->externalUseridToPendingId($params['external_userid'],$params['chat_id']);
    }
}